package com.example.blog.dto.picture;

import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class UpdateTriviaDto {
    @NotBlank(message = "图片地址不能为空")
    private String triviaImage;
    private MultipartFile file;
    @NotNull(message = "该参数不能为空")
    private String content;
    @NotNull(message = "该参数不能为空")
    @Min(value = 1,message = "最小值不能为1")
    private Long id;
}
